/**
 * Copyright (C), 2015-2020, 新华三技术有限公司
 * FileName: User
 * Author:   c10709
 * Date:     2020/12/1 10:52
 * Description: Ldap用户
 * History:
 * <author>     <time>          <version>    <desc>
 * c10709      2020/12/1 10:52  v1.0        新建类
 */
package com.example.demo.ldap.entity;

import org.springframework.ldap.odm.annotations.Attribute;
import org.springframework.ldap.odm.annotations.Entry;

/**
 * 〈一句话功能简述〉<br> 
 * 〈Ldap用户〉
 *
 * @author c10709
 * @create 2020/12/1 10:52
 * @since 1.0.0
 */

@Entry(base = "cn=employees,O=CAH", objectClasses = {"organizationalperson", "person", "top"})
public class User {

    @Attribute(name = "uid")
    private String uid;

    @Attribute(name = "cn")
    private String commonName;

    @Attribute(name = "sn")
    private String userName;

    @Attribute(name = "mail")
    private String mail;

    @Attribute(name = "departmentNumber")
    private String departmentNumber;

    @Attribute(name = "cahorganizationnumber")
    private String cahorganizationNumber;

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getCommonName() {
        return commonName;
    }

    public void setCommonName(String commonName) {
        this.commonName = commonName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getMail() {
        return mail;
    }

    public void setMail(String mail) {
        this.mail = mail;
    }

    public String getDepartmentNumber() {
        return departmentNumber;
    }

    public void setDepartmentNumber(String departmentNumber) {
        this.departmentNumber = departmentNumber;
    }

    public String getCahorganizationNumber() {
        return cahorganizationNumber;
    }

    public void setCahorganizationNumber(String cahorganizationNumber) {
        this.cahorganizationNumber = cahorganizationNumber;
    }

    @Override
    public String toString() {
        return "User{" +
                "uid='" + uid + '\'' +
                ", commonName='" + commonName + '\'' +
                ", userName='" + userName + '\'' +
                ", mail='" + mail + '\'' +
                ", departmentNumber='" + departmentNumber + '\'' +
                ", cahorganizationNumber='" + cahorganizationNumber + '\'' +
                '}';
    }
}